home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ring.yamanashi.ac.jp/pub/pc/freem/action/
/
action.zip
/
tekkyuu.zip
/
tekkyuu
/
tekkyuu.swf
/
scripts
/
frame_17
/
PlaceObject2_99_tekkyuu_34
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-02-20
|
2KB
|
68 lines
onClipEvent(enterFrame){
if(_root.att == 0)
{
x1 = (_root.hx - 16 > _X) * 12 - (_root.hx + 16 < _X) * 12;
_X = _X + x1;
y1 = (- (x1 != 0)) * y2 * 2;
y2 = y2 == 0;
_Y = _root.hy + 24 + y1;
}
if(_root.att == 1)
{
r += _root.att1;
r -= (r == 16) * 16;
r += (r == 0) * 16;
r2 = r1 * r;
x1 = _root.att1 * 12;
_X = _root.hx + 32 * Math.cos(r2) - x1;
_Y = _root.hy + 20 * Math.sin(r2);
_Y = _Y - 32;
_root.pow += (_root.pow < 100) * 2;
}
if(_root.att > 1)
{
_root.att += 1;
x1 = 10 * _root.att1 * _root.att;
_root.iryoku = _root.buki + _root.pow / 20;
_root.iryoku += iryoku2;
if(_root.pow == 100)
{
iryoku2 = _root.buki * 3;
if(_root.buki == 1)
{
this.gotoAndPlay(3);
at1 = 12;
}
if(_root.buki == 2)
{
x1 += x1;
_root.dush = x1 / 2;
this.gotoAndPlay(15);
at1 = 14;
}
if(_root.buki == 3)
{
x1 = - x1;
_root.dush1 = 12;
this.gotoAndPlay(27);
at1 = 14;
}
if(_root.buki == 4)
{
this.gotoAndPlay(39);
at1 = 16;
}
}
at = 6 + at1;
_X = _root.hx + x1;
_Y = _Y + (_Y < _root.hy + 24) * 8;
if(_root.att > at)
{
_root.att = 0;
}
_root.pow = 0;
_root.iryoku2 = 0;
at1 = 0;
}
}